import { IsNotEmpty, IsString, Length } from "class-validator";

export class SigninUserDto {
    @IsNotEmpty()
    @IsString()
    @Length(4, 20, { message: '用户名长度在6-20位之间' })
    username: string;

    @IsNotEmpty()
    @IsString()
    @Length(6, 20)
    password: string;
}